<?php


namespace app\admin\common\model;


use think\Model;

class Cate extends Model
{
    protected $pk='id';
    protected $table='zh_article_category';
    protected $autoWriteTimestamp=true; //自动时间戳


    protected function getStatusAttr($value){
        $status=[0=>'隐藏',1=>'显示'];
        return $status[$value];
    }
}